import 'package:mall/modules/model/goods_entity.dart';

import 'package:json_annotation/json_annotation.dart';

part 'project_selection_detail_entity.g.dart';

@JsonSerializable()
class ProjectSelectionDetailEntity {
  ProjectSelectionDetailTopic? topic;
  List<GoodsEntity>? goods;

  ProjectSelectionDetailEntity({
    this.topic,
    this.goods,
  });

  factory ProjectSelectionDetailEntity.fromJson(Map<String, dynamic> json) => _$ProjectSelectionDetailEntityFromJson(json);

  Map<String, dynamic> toJson() => _$ProjectSelectionDetailEntityToJson(this);
}

@JsonSerializable()
class ProjectSelectionDetailTopic {
  String? picUrl;
  bool? deleted;
  String? addTime;
  double? price;
  String? subtitle;
  int? sortOrder;
  List<int>? goods;
  String? updateTime;
  int? id;
  String? title;
  String? readCount;
  String? content;

  ProjectSelectionDetailTopic({
    this.picUrl,
    this.deleted,
    this.addTime,
    this.price,
    this.subtitle,
    this.sortOrder,
    this.goods,
    this.updateTime,
    this.id,
    this.title,
    this.readCount,
    this.content,
  });

  factory ProjectSelectionDetailTopic.fromJson(Map<String, dynamic> json) => _$ProjectSelectionDetailTopicFromJson(json);

  Map<String, dynamic> toJson() => _$ProjectSelectionDetailTopicToJson(this);
}